package com.tpyule.tpclass.dao;

import com.tpyule.tpclass.entity.bo.CommentDetailBo;
import com.tpyule.tpclass.entity.dto.CommentQueryDto;
import com.tpyule.tpclass.entity.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zzz
 * @version 1.0
 * @date 2020/4/15 17:05
 */
@Mapper
public interface CommentDao {
    /**
     * 添加评论
     * @param comment
     * @return
     */
    public int addComment(Comment comment);

    /**
     * 查询评论
     * @param commentQueryDto
     * @return
     */
    public List<CommentDetailBo> getListComment(CommentQueryDto commentQueryDto);
}
